package com.design03_behavioral.pattern17_state.example01;

/**
 * @ClassName ConcreteStateA
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/9 2:36
 */
public class ConcreteStateA implements State  {

    @Override
    public void handle(Context context) {
        System.out.println("进入状态模式A......");
        context.setCurrentState(this);
    }


    @Override
    public String toString() {
        return "当前状态: ConcreteStateA";
    }

}
